﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace GlobalGameClasses
{
    /// <summary>
    /// This class represents the 4 difficulty levels of our game. Each difficulty has a multiplier
    /// which is used to calculate the damage etc. of the enemies.
    /// </summary>
    public class Difficulty
    {
        private int difficultyID;

        public float multiplier
        {
            private set;
            get;
        }

        private string stringKey;

        public static Difficulty DIFFICULTY_EASY = new Difficulty(0, 1, "difficulty_easy");

        public static Difficulty DIFFICULTY_MEDIUM = new Difficulty(1, 1.5f, "difficulty_medium");

        public static Difficulty DIFFICULTY_HARD = new Difficulty(2, 2f, "difficulty_hard");

        public static Difficulty DIFFICULTY_VERY_HARD = new Difficulty(3, 2.5f, "difficulty_veryhard");

        private Difficulty(int difficultyID, float multiplier, string stringKey)
        {
            this.difficultyID = difficultyID;
            this.multiplier = multiplier;
            this.stringKey = stringKey;
        }

        public override string ToString() 
        {
            return GlobalGameClasses.GlobalGameValues.Values.GlobalStrings.getValue(stringKey);
        }

    }
}
